Class FCMMessagingHelper


  • public class FCMMessagingHelper
    extends java.lang.Object
    Helper class for Firebase Cloud Messaging (FCM)
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isFCMAvailable​(android.content.Context context)
      Method which checks if FCM is available on device
      android.content.Intent transformFCMMessageIntoIntent​(com.google.firebase.messaging.RemoteMessage remoteMessage)
      Transforms FCM remote message to intent which can be sent to A3LMessaging interface
      static Notification transformFCMNotificationToA3LNotification​(com.google.firebase.messaging.RemoteMessage.Notification notification)
      Method to transform FCM notification into an A3LNotification
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FCMMessagingHelper

        public FCMMessagingHelper()
    • Method Detail

      • isFCMAvailable

        public boolean isFCMAvailable​(@NonNull
                                      android.content.Context context)
        Method which checks if FCM is available on device
        Parameters:
        context - : Application Context
        Returns:
        true if FCM is present else otherwise
      • transformFCMMessageIntoIntent

        public android.content.Intent transformFCMMessageIntoIntent​(@NonNull
                                                                    com.google.firebase.messaging.RemoteMessage remoteMessage)
        Transforms FCM remote message to intent which can be sent to A3LMessaging interface
        Parameters:
        remoteMessage - : FCM Remote message
        Returns:
        Transformed intent
      • transformFCMNotificationToA3LNotification

        public static Notification transformFCMNotificationToA3LNotification​(com.google.firebase.messaging.RemoteMessage.Notification notification)
        Method to transform FCM notification into an A3LNotification
        Parameters:
        notification - : FCM RemoteMessageNotification
        Returns:
        A3LNotification